﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class gequxinxidetail : System.Web.UI.Page
{
    public string nbianhao, ngeming, nleibie, ngeshou, nzuoci, nzuoqu, ngeci, nwenjian, nfaburen,nid;
    protected void Page_Load(object sender, EventArgs e)
    {
        nid = Request.QueryString["id"].ToString().Trim();
        if (!IsPostBack)
        {
            string sql;
            sql = "select * from gequxinxi where id=" + Request.QueryString["id"].ToString().Trim();
            getdata(sql);
        }
    }



    private void getdata(string sql)
    {
        DataSet result = new DataSet();
        result = new Class1().hsggetdata(sql);
        if (result != null)
        {
            if (result.Tables[0].Rows.Count > 0)
            {
                nbianhao = result.Tables[0].Rows[0]["bianhao"].ToString().Trim(); ngeming = result.Tables[0].Rows[0]["geming"].ToString().Trim(); nleibie = result.Tables[0].Rows[0]["leibie"].ToString().Trim(); ngeshou = result.Tables[0].Rows[0]["geshou"].ToString().Trim(); nzuoci = result.Tables[0].Rows[0]["zuoci"].ToString().Trim(); nzuoqu = result.Tables[0].Rows[0]["zuoqu"].ToString().Trim(); ngeci = result.Tables[0].Rows[0]["geci"].ToString().Trim(); nwenjian = result.Tables[0].Rows[0]["wenjian"].ToString().Trim(); nfaburen = result.Tables[0].Rows[0]["faburen"].ToString().Trim();

            }
        }
    }

}

